<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>快印网-www.kuaing.com</title>
		<%= stylesheet_link_tag 'scaffold' %>
		<%= stylesheet_link_tag 'commons' %>
		<%= stylesheet_link_tag 'main' %>
		<%= stylesheet_link_tag 'admin_login' %>
		<%= javascript_include_tag :defaults %>
		<%= active_scaffold_includes %>
	</head>
	<body>
		<div class="main_wrapper">
			<div class="main_inner_wrapper">
				<div class="main_head">
					<div class="main_head_logo"><img src="/images/main_logo.png" alt="kuaing logo"/></div>
				</div>
				<div class="main_menu_top"> </div>
				<div class="main_menu_bar">
					<div class="main_menu_clip_wrapper">
						<div class="main_menu_clip"><%= link_to "店铺管理", {:controller => "admin/store", :action => "list"} %></div>
						<div class="main_menu_clip"><%= link_to "商户管理", {:controller => "admin/merchant", :action => "list"} %></div>
						<div class="main_menu_clip"><%= link_to "产品模板", {:controller => "admin/print_product_field", :action => "list"}%></div>
						<div class="main_menu_clip"><%= link_to "用户管理", {:controller => "admin/user", :action => "list"}%></div>
						<div class="main_menu_clip"><%= link_to "产品", {:controller => "admin/print_product", :action => "list"} %></div>
						<div class="main_menu_clip"><%= link_to "分类", {:controller => "admin/print_category", :action => "list"}%></div>
						<div class="main_menu_clip_active"><%= link_to "管理员管理", {:controller => "admin/administrator", :action => "list"}%></div>
					</div>
				</div>
				<div class="main_user_bar">
					<div class="main_user_bar_wrapper">
						<span><img src="/images/user-logo.png"/>
							 我的快印(
							 <% if(session[:admin].nil?)%>
							 <%= link_to "登录", {:controller => "admin/login"} %>
							 <% else %>
							 <%= session[:admin] + " | "%><%= link_to "登出", {:controller => "admin/login", :action => "logout"} %>
													 <% end %>
							 )
						</span>
					</div>
				</div>
				<div class="main_content_wrapper">
					<div class="main_content_inner_wrapper">
						<%= yield :layout %>
					</div>
				</div>
				<div class="main_foot_bar"></div>
				<div class="main_foot">
					<%= link_to "快印网-http://www.kuaing.com", :controller => '../main', :action => 'index' %>
				</div>
			</div>
		</div>
	</body>
</html>